package com.huanzhidadi.rabbitmq.seqqueuewithredis.consumer;

import com.huanzhidadi.rabbitmq.seqqueuewithredis.entity.MessageInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "q_seq")
@Slf4j
public class Consumer13 extends ConsumerBase {

    @RabbitHandler
    public void onMessage(MessageInfo message) {
        log.info("c13: {}", message.getId());
        operMessage(message);
    }
}